//
//  TLHtmlMedia.h
//  Coding_iOS
//
//  Created by taolei-mac on 2017/11/28.
//  Copyright © 2017年 com.lianchuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TFHpple.h"

typedef NS_ENUM(NSInteger, MediaShowType) {
    MediaShowTypeNone = 1,
    MediaShowTypeCode = 2,
    MediaShowTypeImage = 3,
    MediaShowTypeMonkey = 5,
    MediaShowTypeImageAndMonkey = 15,
    MediaShowTypeAll = 30
};

@class TLHtmlMediaItem;

@interface TLHtmlMedia : NSObject

@property (nonatomic, copy) NSString *contentOrigional;

@property (nonatomic, strong) NSMutableArray *mediaItems;

@property (nonatomic, strong) NSArray *imageItems;

@property (nonatomic, copy) NSMutableString *contentDisplay;

+ (instancetype)htmlMediaWithString:(NSString *)htmlString showType:(MediaShowType)showType;

- (instancetype)initWithString:(NSString *)htmlString showType:(MediaShowType)showType;

@end
